package com.rui.service.impl;

import com.rui.domain.DataBase;
import com.rui.mapper.DataBaseMapper;
import com.rui.service.DataBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("dataBaseService")
public class DataBaseServiceImpl implements DataBaseService {

    @Autowired
    private DataBaseMapper dataBaseMapper;

    @Override
    public List<DataBase> findAll() {
        List<DataBase> dataBases = dataBaseMapper.selectByExample(null);
        if (dataBases!=null&&dataBases.size()>0) {
            return dataBases;
        }
        return null;
    }
}
